import { UserInfo } from "./user"

export interface LoginApiParams {
	username: string
	password: string
	googleAuthCode: string
	merchantCode: string
	type: 1 | 2
}

export interface LoginApiResponse {
	token: string
	userInfo: UserInfo
}
/** user's role */
export type Role = "guest" | "admin"

export interface LoginParams {
	/** 用户名 */
	username: string
	/** 用户密码 */
	password: string
	googleAuthCode: string
	merchantCode: string
	type?: 1 | 2
}

export interface LoginResult {
	/** auth token */
	token: string
	username: string
	role: Role
}

export interface LogoutParams {
	token: string
}

// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface LogoutResult {}
